//The map class. This will (when it's done), draw the entire map in a few loops, making it easy enough to set stuff.
//Matt Morrill

//Stuff this class has/needs: a gigantic array. a 13 x 7 actually.

#pragma once

#include "Cell.h"
#include "v2d.h"
#include <stdio.h>


class Map
{
private:
	Cell map[13][7]; //I can't give it data now, but in the constructors I will.
	int level;
public:
	Map();
	~Map();
	void glDraw();
	void setSurvivalSpots(int x, int y);
	void unsetSurvivalSpots(int x, int y);
	void setSurvive();
	Cell& getCell(int rows, int cols) {return map[rows][cols];}
	Cell& getCell(float x, float y); //I have to use this, which is why I'm creating it.
	void initCells(); //This will just initialize the cells...give them their x and y position.
	int getDots(int x, int y);
	void changeLevel();
	int getLevel() {return level;}
	void initLevelTwo();
	void initLevelThree();
	void initLevelFour();
	void nextPosition(int rows, int cols); //Sorry neal, but I hope you don't mind if I take my own crack at the function.
	void deSelect();
	void drawLines();
};